package evostar.createMuchUser;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBUtil {

    public Connection getConn() throws Exception{
        String url = "jdbc:mysql://localhost:3306/seckill?characterEncoding=utf-8&serverTimezone=Asia/Shanghai";
        String username = "root";
        String password = "admin";
        String driver = "com.mysql.cj.jdbc.Driver";
        Class.forName(driver);
        return DriverManager.getConnection(url,username, password);
    }
}
